using namespace std;
class Slots{
	//
	// This class takes care of connections. It's the layer between the network service and the
	// interface
	//
	
	public:
	//constructor
	Slots();
	//destructor
	~Slots();
	//checkt op veranderingen en geeft pointer naar client weer die geholpen moet worden
	int changed() const;
	//connect a new client
	void new_client();
	//how many connections
	int numberof()const;
	int clientid()const;
	string whois()const;
	string whois(int)const;
	void changename(string _name);
	string showmessage();	
	private:
	string * text;
	int clientnr;
	string first_message()const;
	struct Slot{
		bool active;			//says wether client is still active or not, when false, this can be used again by another client.
		string name;			//nickname connector
		string message;			//message from a client to a client / from server to server
		bool change; 			//bool wether something changed yet
		int cursor;			 	//int describing cursor's location
	};
	Slot **slots; // tabel met pointers naar iedere knoop apart.
};
